package com.fsy.its.util;

public class Const {

    //传输装置类型
    public static final int TRANS_TYPE_DTU = 1; //透传装置
    public static final int TRANS_TYPE_GBT = 2; //符合国标协议的信传装置

    //告警类型
    public static final int ALARM_TYPE_FIRE = 1;    //火警
    public static final int ALARM_TYPE_FAULT = 2;   //故障

    //告警状态
    public static final int ALARM_STATE_RESET = 0;    //已复位
    public static final int ALARM_STATE_OCCURRED = 1; //已发生

    //节点或数据状态
    public static final int NODE_STATE_INACTIVE = 0;    //停用
    public static final int NODE_STATE_ACTIVE   = 1;    //启用
    public static final int NODE_STATE_REMOVED  = -1;   //已删除

    //缓存键值
    public static final String CACHE_KEY_DTUS = "its.dtus";     //在线DTU列表
    public static final String CACHE_KEY_DTU_PRE = "its.dtu.";  //DTU详情，后面跟DTU的id

    //消息主题
    public static final String TOPIC_DTU_ONLINE = "/its/dtu/online/";   //DTU上线消息，后面跟DTU的id
    public static final String TOPIC_DTU_OFFLINE = "/its/dtu/offline/"; //DTU离线消息，后面跟DTU的id
    public static final String TOPIC_GBT_ONLINE = "/its/gbt/online/";   //信传上线消息，后面跟信传的id
    public static final String TOPIC_GBT_OFFLINE = "/its/gbt/offline/"; //信传离线消息，后面跟信传的id
    public static final String TOPIC_FIRE = "/fire/";   //火警消息，后面跟"行政区/园区id/建筑物id"
    public static final String TOPIC_FAULT = "/fault/";  //故障消息，后面跟"行政区/园区id/建筑物id"
}
